package net.youball.utils.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MailAuther extends Authenticator{
	private String name;
	private String password;
	String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public MailAuther(String name,String password){
		this.name=name;
		this.password=password;
	}
	 @Override

	protected PasswordAuthentication getPasswordAuthentication() {

		return new PasswordAuthentication(name, password);
	
	}
}
